package com.mall.module.user.domain.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@Data
@ApiModel(description = "第三方账号绑定数据传输对象")
public class OauthBindDTO {

    @ApiModelProperty(value = "平台类型(WECHAT/ALIPAY/QQ)", required = true)
    @NotBlank(message = "平台类型不能为空")
    private String platform;

    @ApiModelProperty(value = "授权码", required = true)
    @NotBlank(message = "授权码不能为空")
    private String authCode;

    @ApiModelProperty(value = "开放ID")
    private String openId;

    @ApiModelProperty(value = "联合ID")
    private String unionId;

    @ApiModelProperty(value = "访问令牌")
    private String accessToken;

    @ApiModelProperty(value = "刷新令牌")
    private String refreshToken;
} 